const path = require('path')

module.exports = {
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        pathRewrite: {
          '^/api': '/static/mock'
        }
      }
    }
    // disableHostCheck: true
  },

  configureWebpack: {
    resolve: {
      alias: {
        'styles': path.resolve('src/assets/styles'),
        'common': path.resolve('src/common')
      }
    }
  },

  publicPath: '/qunaerwangtest/',
}
